xen.git
19 years agoRemove the VTPM.instance field from the bindings.
Ewan Mellor [Tue, 30 Jan 2007 16:23:35 +0000 (16:23 +0000)]
Remove the VTPM.instance field from the bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoClean up arch_get_xen_caps() to not use sprintf().
Keir Fraser [Tue, 30 Jan 2007 16:23:43 +0000 (16:23 +0000)]
Clean up arch_get_xen_caps() to not use sprintf().
Based on a patch from Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoia64, ppc: Remove uses of sprintf().
Keir Fraser [Tue, 30 Jan 2007 16:14:16 +0000 (16:14 +0000)]
ia64, ppc: Remove uses of sprintf().
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
19 years agoAdded task.session field.
Ewan Mellor [Tue, 30 Jan 2007 16:09:16 +0000 (16:09 +0000)]
Added task.session field.

Fix session.get_by_uuid and get_uuid, and remove session.get_all.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoia64: Clean up and fix errors in strncpy -> strlcpy conversion
kaf24@localhost.localdomain [Tue, 30 Jan 2007 15:57:58 +0000 (15:57 +0000)]
ia64: Clean up and fix errors in strncpy -> strlcpy conversion
Signed-off-by: Aron Griffis <aron@hp.com>
19 years agoAdded VM.is_control_domain field.
Ewan Mellor [Tue, 30 Jan 2007 15:27:10 +0000 (15:27 +0000)]
Added VM.is_control_domain field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAlign vTPM support in the Xen-API, documentation and lib-xen
kaf24@localhost.localdomain [Tue, 30 Jan 2007 14:51:05 +0000 (14:51 +0000)]
Align vTPM support in the Xen-API, documentation and lib-xen
(after the recent changes).

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoOlder versions of as86 (<=0.16.0) require macro arguments to be bracketed.
kaf24@localhost.localdomain [Tue, 30 Jan 2007 14:20:00 +0000 (14:20 +0000)]
Older versions of as86 (<=0.16.0) require macro arguments to be bracketed.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix cross-compile (ia64-built-on-x86) failure.
kaf24@localhost.localdomain [Tue, 30 Jan 2007 13:59:01 +0000 (13:59 +0000)]
Fix cross-compile (ia64-built-on-x86) failure.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoAdded backreference from PIF_metrics to PIF, and added a uuid to the session
Ewan Mellor [Tue, 30 Jan 2007 13:53:44 +0000 (13:53 +0000)]
Added backreference from PIF_metrics to PIF, and added a uuid to the session
record.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded uuid to the PIF_metrics record.
Ewan Mellor [Tue, 30 Jan 2007 13:52:03 +0000 (13:52 +0000)]
Added uuid to the PIF_metrics record.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded uuid to the PIF record.
Ewan Mellor [Tue, 30 Jan 2007 13:51:45 +0000 (13:51 +0000)]
Added uuid to the PIF record.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host_metrics class.
Ewan Mellor [Tue, 30 Jan 2007 13:46:46 +0000 (13:46 +0000)]
Added host_metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded modelling and C bindings for crashdumps, and suspend VDIs.
Ewan Mellor [Tue, 30 Jan 2007 12:43:40 +0000 (12:43 +0000)]
Added modelling and C bindings for crashdumps, and suspend VDIs.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agonew domain builder fix to boot domU on IA64.
kaf24@localhost.localdomain [Tue, 30 Jan 2007 13:52:52 +0000 (13:52 +0000)]
new domain builder fix to boot domU on IA64.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
19 years agoPush the target to build foreign headers into tools and xen
Ian Campbell [Tue, 30 Jan 2007 13:46:48 +0000 (13:46 +0000)]
Push the target to build foreign headers into tools and xen
directories.  This allows those directories to be built independently
without relying on the toplevel Makefile.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoFix passing keymap parameter to xen-vncfb.
kaf24@localhost.localdomain [Tue, 30 Jan 2007 13:42:19 +0000 (13:42 +0000)]
Fix passing keymap parameter to xen-vncfb.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
19 years agoxc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.
kaf24@localhost.localdomain [Tue, 30 Jan 2007 13:39:37 +0000 (13:39 +0000)]
xc_linux_save was broken in 13594:30af6cfdb05c. Unbreak it.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
19 years agolinux: Build TPM backend as a module by default.
kaf24@localhost.localdomain [Tue, 30 Jan 2007 13:37:43 +0000 (13:37 +0000)]
linux: Build TPM backend as a module by default.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] 32on64 fix compat page table shutdown
Emmanuel Ackaouy [Tue, 30 Jan 2007 12:33:43 +0000 (12:33 +0000)]
[XEN] 32on64 fix compat page table shutdown
When releasing the guest page table, do not clobber the xen private
L4 page pointer which is managed by setup/release_compat_l4.

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years agoAdded host.logging, to hold server-side logging configuration.
Ewan Mellor [Tue, 30 Jan 2007 12:31:20 +0000 (12:31 +0000)]
Added host.logging, to hold server-side logging configuration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMerge
Tim Deegan [Tue, 30 Jan 2007 11:57:56 +0000 (11:57 +0000)]
Merge

19 years ago[XEND] Fix bootable flag bypass in XendConfig
Alastair Tse [Tue, 30 Jan 2007 11:56:27 +0000 (11:56 +0000)]
[XEND] Fix bootable flag bypass in XendConfig

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[PATCH][HVM] fix smp guest hang after restore
"Zhai, Edwin" [Tue, 30 Jan 2007 11:56:25 +0000 (11:56 +0000)]
[PATCH][HVM] fix smp guest hang after restore
[PATCH][HVM] fix smp guest hang after restore

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
update the pt irq after restore, otherwise all lapic timer intr are lost

19 years ago[XEND] Unparsable VLAN numbers should default to -1
Alastair Tse [Tue, 30 Jan 2007 11:37:18 +0000 (11:37 +0000)]
[XEND] Unparsable VLAN numbers should default to -1

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoSet the log level back to WARN, reverting accidentally committed change.
Ewan Mellor [Tue, 30 Jan 2007 11:14:23 +0000 (11:14 +0000)]
Set the log level back to WARN, reverting accidentally committed change.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded host.other_config.
Ewan Mellor [Tue, 30 Jan 2007 01:23:58 +0000 (01:23 +0000)]
Added host.other_config.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove XEN_API_CPU_FEATURE enum.
Ewan Mellor [Tue, 30 Jan 2007 00:36:43 +0000 (00:36 +0000)]
Remove XEN_API_CPU_FEATURE enum.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove VM.actions_after_suspend, which never made any sense.
Ewan Mellor [Tue, 30 Jan 2007 00:34:31 +0000 (00:34 +0000)]
Remove VM.actions_after_suspend, which never made any sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the CPU feature handling, unimplementable as it stands.
Ewan Mellor [Tue, 30 Jan 2007 00:10:05 +0000 (00:10 +0000)]
Remove the CPU feature handling, unimplementable as it stands.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDocument PIF_HANDLE_INVALID and PIF_METRICS_HANDLE_INVALID.
Ewan Mellor [Mon, 29 Jan 2007 19:04:54 +0000 (19:04 +0000)]
Document PIF_HANDLE_INVALID and PIF_METRICS_HANDLE_INVALID.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMove the io bandwidth fields from PIF onto a new PIF_metrics class.
Ewan Mellor [Mon, 29 Jan 2007 19:00:48 +0000 (19:00 +0000)]
Move the io bandwidth fields from PIF onto a new PIF_metrics class.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix documentation so that the connection objects (PIF, VBD, and VIF) are
Ewan Mellor [Mon, 29 Jan 2007 14:52:27 +0000 (14:52 +0000)]
Fix documentation so that the connection objects (PIF, VBD, and VIF) are
connected to their referands through StaticRO fields.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded missing PBD-related C bindings.
Ewan Mellor [Mon, 29 Jan 2007 13:18:20 +0000 (13:18 +0000)]
Added missing PBD-related C bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded modelling and C bindings for the PBD class. PBDs are the analogue of
Ewan Mellor [Mon, 29 Jan 2007 13:17:53 +0000 (13:17 +0000)]
Added modelling and C bindings for the PBD class.  PBDs are the analogue of
PIFs, indicating how an SR is attached to a host.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy-ups; no semantic-change.
Ewan Mellor [Mon, 29 Jan 2007 13:16:00 +0000 (13:16 +0000)]
Tidy-ups; no semantic-change.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove VIF.name from the documentation, matching recent change to Xend.
Ewan Mellor [Mon, 29 Jan 2007 12:57:49 +0000 (12:57 +0000)]
Remove VIF.name from the documentation, matching recent change to Xend.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoUpdate doc-comments.
Ewan Mellor [Mon, 29 Jan 2007 12:53:18 +0000 (12:53 +0000)]
Update doc-comments.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove the VDI.parent and VDI.children fields -- this needs more thinking out,
Ewan Mellor [Mon, 29 Jan 2007 12:19:40 +0000 (12:19 +0000)]
Remove the VDI.parent and VDI.children fields -- this needs more thinking out,
and cannot be supported in this form.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRename VM.otherConfig to VM.other_config, for consistency with the other fields,
Ewan Mellor [Mon, 29 Jan 2007 12:11:13 +0000 (12:11 +0000)]
Rename VM.otherConfig to VM.other_config, for consistency with the other fields,
and implement add_to_other_config and remove_from_other_config in the C
bindings.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoRemove VBD.driver, VIF.type, VIF.name, VTPM.driver. This modelling was never
Ewan Mellor [Mon, 29 Jan 2007 00:05:40 +0000 (00:05 +0000)]
Remove VBD.driver, VIF.type, VIF.name, VTPM.driver.  This modelling was never
correct, and the values are best left implicit.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDocument TASK_HANDLE_INVALID.
Ewan Mellor [Sun, 28 Jan 2007 23:07:37 +0000 (23:07 +0000)]
Document TASK_HANDLE_INVALID.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded TASK_HANDLE_INVALID to the messages file.
Ewan Mellor [Sun, 28 Jan 2007 23:06:21 +0000 (23:06 +0000)]
Added TASK_HANDLE_INVALID to the messages file.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoTidy up the VBD API calls.
Ewan Mellor [Sun, 28 Jan 2007 23:05:59 +0000 (23:05 +0000)]
Tidy up the VBD API calls.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMatch recent changes to the task class in XenAPI with the get_record call here.
Ewan Mellor [Sun, 28 Jan 2007 18:39:17 +0000 (18:39 +0000)]
Match recent changes to the task class in XenAPI with the get_record call here.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix bootloader handling.
Ewan Mellor [Sun, 28 Jan 2007 18:38:47 +0000 (18:38 +0000)]
Fix bootloader handling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix the handling of MESSAGE_METHOD_UNKNOWN, MESSAGE_PARAMETER_COUNT_MISMATCH,
Ewan Mellor [Sun, 28 Jan 2007 18:37:42 +0000 (18:37 +0000)]
Fix the handling of MESSAGE_METHOD_UNKNOWN, MESSAGE_PARAMETER_COUNT_MISMATCH,
through the AsyncProxy.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdd task.allowed_operations field, and task.cancel message. The
Ewan Mellor [Sun, 28 Jan 2007 18:05:13 +0000 (18:05 +0000)]
Add task.allowed_operations field, and task.cancel message.  The
task_status_type enum has gained cancelling and cancelled values.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMade task.name_* read-only (these are set by Xend) and drop task.eta.
Ewan Mellor [Sun, 28 Jan 2007 17:33:50 +0000 (17:33 +0000)]
Made task.name_* read-only (these are set by Xend) and drop task.eta.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMake session.this_host and session.this_user ROrun -- they are implicitly set
Ewan Mellor [Sun, 28 Jan 2007 17:21:37 +0000 (17:21 +0000)]
Make session.this_host and session.this_user ROrun -- they are implicitly set
by a call to session.login_with_password, and cannot be created through a
constructor.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoAdded a VBD.bootable flag.
Ewan Mellor [Sun, 28 Jan 2007 17:11:40 +0000 (17:11 +0000)]
Added a VBD.bootable flag.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoFix interface_name() after change of definition for the vlan field.
Ewan Mellor [Sun, 28 Jan 2007 15:55:55 +0000 (15:55 +0000)]
Fix interface_name() after change of definition for the vlan field.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDocument new error codes VLAN_TAG_INVALID and PIF_IS_PHYSICAL.
Ewan Mellor [Sun, 28 Jan 2007 13:50:56 +0000 (13:50 +0000)]
Document new error codes VLAN_TAG_INVALID and PIF_IS_PHYSICAL.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDocument existing PIF.create_VLAN, and remove PIF.create (PIFs are implicitly
Ewan Mellor [Sun, 28 Jan 2007 13:40:07 +0000 (13:40 +0000)]
Document existing PIF.create_VLAN, and remove PIF.create (PIFs are implicitly
created from the physical host configuration).

Change PIF.name to PIF.device, for consistency with other uses, and make
PIF.VLAN an int.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoIntegrate the Xen-API doc into the build.
Ewan Mellor [Sat, 27 Jan 2007 18:26:41 +0000 (18:26 +0000)]
Integrate the Xen-API doc into the build.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoMinor tidy-up.
Ewan Mellor [Sat, 27 Jan 2007 15:02:00 +0000 (15:02 +0000)]
Minor tidy-up.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years ago[HVM] When guest explicitly modifies the TSC, update platform timers
shand@cosworth.eng.hq.xensource.com [Tue, 30 Jan 2007 00:52:51 +0000 (00:52 +0000)]
[HVM] When guest explicitly modifies the TSC, update platform timers
_after_ updating guest time (since otherwise pt_reset() will get the
old hvm_get_guest_time() and subsequently pt_intr_post() will warp
the TSC back again).

This is the smallest fix for the HVM SMP TSC issues seen on recent
(viz. 2.6.18+) linux HVM kernels, but probably not the best. Cleaner
fix needs more thought.

Signed-off-by: Steven Hand <steven@xensource.com>
19 years ago[linux] Delay making the VCPUOP_initialise calls until the cpu is brought up
Christian Limpach [Mon, 29 Jan 2007 22:43:51 +0000 (22:43 +0000)]
[linux] Delay making the VCPUOP_initialise calls until the cpu is brought up
the first time.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoRemove unused implementation of vsprintf().
kfraser@localhost.localdomain [Mon, 29 Jan 2007 21:16:02 +0000 (21:16 +0000)]
Remove unused implementation of vsprintf().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove little-endian assumption from library code.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 17:01:53 +0000 (17:01 +0000)]
Remove little-endian assumption from library code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge
Tim Deegan [Mon, 29 Jan 2007 16:50:22 +0000 (16:50 +0000)]
Merge

19 years ago[HVM] Save/restore cleanups: don't save state for downed vcpus.
Tim Deegan [Mon, 29 Jan 2007 16:49:29 +0000 (16:49 +0000)]
[HVM] Save/restore cleanups: don't save state for downed vcpus.
(Since we wouldn't load it anyway)
Also tidy up the plumbing around the hypercalls.

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years agoRemove unused noth/hton endian conversion macros.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 16:48:42 +0000 (16:48 +0000)]
Remove unused noth/hton endian conversion macros.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoPort ACM code to new Xen byteorder macros.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 16:46:52 +0000 (16:46 +0000)]
Port ACM code to new Xen byteorder macros.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoRemove strcat/strncat/strcmp/strncmp. Replaced with safer
kfraser@localhost.localdomain [Mon, 29 Jan 2007 16:04:43 +0000 (16:04 +0000)]
Remove strcat/strncat/strcmp/strncmp. Replaced with safer
alternatives (including a new implementation of strlcat).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoia64 and ppc: Remove uses of strcpy and strncpy.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 15:01:33 +0000 (15:01 +0000)]
ia64 and ppc: Remove uses of strcpy and strncpy.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
19 years agoRemove uses of strcpy and strncpy from common and x86 code.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 14:59:42 +0000 (14:59 +0000)]
Remove uses of strcpy and strncpy from common and x86 code.

Retain safe_strcpy(). It can hide the third argument to strlcpy() in
most cases.

Based on patches from Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Force .data segment to be 4k aligned on i386.
Ian Campbell [Mon, 29 Jan 2007 13:22:21 +0000 (13:22 +0000)]
[LINUX] Force .data segment to be 4k aligned on i386.

Changeset 4e878f596c16 applied this change to the patches directory
but we also need to patch the sparse tree.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agolibelf cannot rely on the strlcpy() BSD-ism.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 11:47:00 +0000 (11:47 +0000)]
libelf cannot rely on the strlcpy() BSD-ism.
Make a private definition based on strncpy and strlen.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix 'xm create' and 'xm start' when SEDF scheduler is used.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 10:55:20 +0000 (10:55 +0000)]
Fix 'xm create' and 'xm start' when SEDF scheduler is used.

If the Xen is running with the sedf scheduler, the following functions
do not call the domain_sched_credit_set().
 - domain_create()
 - domain_create_from_dict()
 - domain_start()

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoReplace sprintf with snprintf and strncpy with strlcpy.
kfraser@localhost.localdomain [Mon, 29 Jan 2007 10:52:17 +0000 (10:52 +0000)]
Replace sprintf with snprintf and strncpy with strlcpy.

There are various cases where no NULL-terminated strings are
guaranteed and eventual possible overflows. This patch fixes them.

From: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoClean up libelf endian macros and includes.
kaf24@localhost.localdomain [Sun, 28 Jan 2007 19:02:00 +0000 (19:02 +0000)]
Clean up libelf endian macros and includes.
Based on a patch from John Levon <john.levon@sun.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoFix firmware compile on Solaris.
kaf24@localhost.localdomain [Sun, 28 Jan 2007 18:45:04 +0000 (18:45 +0000)]
Fix firmware compile on Solaris.

Use $(LD) not ld. Include right headers for x86 ELF bits.

Signed-off-by: John Levon <john.levon@sun.com>
19 years agoFix compat build for weird solaris gcc target.
kaf24@localhost.localdomain [Sun, 28 Jan 2007 16:05:07 +0000 (16:05 +0000)]
Fix compat build for weird solaris gcc target.
Signed-off-by: John Levon <john.levon@sun.com>
19 years agoTo avoid problems (hang) when doing migration, the Console Controller
kaf24@localhost.localdomain [Sun, 28 Jan 2007 09:47:22 +0000 (09:47 +0000)]
To avoid problems (hang) when doing migration, the Console Controller
needs to implement a (dummy) migrate method.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[HVM] save/restore fix
kaf24@localhost.localdomain [Sun, 28 Jan 2007 09:46:09 +0000 (09:46 +0000)]
[HVM] save/restore fix

* do not save "down" vcpu's vmcs to avoid system crash
* make hvm_ctxt buffer bigger as all vmcs sit here, otherwise >=4
* vcpus cause overflow

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
19 years agoAllow 'xm create' to set scheduling parameters.
kaf24@localhost.localdomain [Sun, 28 Jan 2007 09:37:18 +0000 (09:37 +0000)]
Allow 'xm create' to set scheduling parameters.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoReject xm sched-* comands for other than the in-use scheduler.
kaf24@localhost.localdomain [Sun, 28 Jan 2007 09:35:00 +0000 (09:35 +0000)]
Reject xm sched-* comands for other than the in-use scheduler.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix xentop error return code if passed unrecognised options.
kaf24@localhost.localdomain [Sun, 28 Jan 2007 09:33:47 +0000 (09:33 +0000)]
Fix xentop error return code if passed unrecognised options.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[HVM] Allow HVM guest to request invalidation of foreign mappings via
kaf24@localhost.localdomain [Sat, 27 Jan 2007 13:32:27 +0000 (13:32 +0000)]
[HVM] Allow HVM guest to request invalidation of foreign mappings via
an I/O port write.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years agoRename find_domain_by_id() to get_domain_by_id().
kaf24@localhost.localdomain [Fri, 26 Jan 2007 18:38:40 +0000 (18:38 +0000)]
Rename find_domain_by_id() to get_domain_by_id().
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAdd RCU support to Xen.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 18:34:36 +0000 (18:34 +0000)]
Add RCU support to Xen.
Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
19 years agoDon't clobber vcpu flags when getting vcpu context.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 17:33:58 +0000 (17:33 +0000)]
Don't clobber vcpu flags when getting vcpu context.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] Fix some BIOS build warnings.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 16:56:26 +0000 (16:56 +0000)]
[HVM] Fix some BIOS build warnings.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[TCGBIOS] Fix some makefile issues.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 16:46:00 +0000 (16:46 +0000)]
[TCGBIOS] Fix some makefile issues.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoRemove the test functions from HVM highmem 32-bit BIOS.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 16:39:38 +0000 (16:39 +0000)]
Remove the test functions from HVM highmem 32-bit BIOS.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[HVM] Add TCG BIOS extensions to the high memory area along with
kaf24@localhost.localdomain [Fri, 26 Jan 2007 16:38:32 +0000 (16:38 +0000)]
[HVM] Add TCG BIOS extensions to the high memory area along with
some often-used libc utility functions. The TCG extensions are
described here:

https://www.trustedcomputinggroup.org/specs/PCClient/TCG_PCClientImplementationforBIOS_1-20_1-00.pdf

I have tried to keep the patching with rombios.c to a minimum, but
some amount of code needs to be inserted at various locations.

The code is currently deactivated, but can be activated by setting
BX_TCGBIOS to '1'.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoThis patch adds a 32bit gateway to the Bochs BIOS. The 32 bit code is
kaf24@localhost.localdomain [Fri, 26 Jan 2007 16:30:48 +0000 (16:30 +0000)]
This patch adds a 32bit gateway to the Bochs BIOS. The 32 bit code is
compiled with gcc and linked into the hvmloader as a byte-array.
Hvmloader allocates memory (rounded up to next 64kb) from the e820
table
below 4GB, copies and relocates the 32bit code in the allocated area
and
copies a jumptable (located in a section '.biosjumptable') pointing to
the 'exported' functions into the Bochs BIOS's memory area to link the
two code sections. The memory area has been reserved and can be
identified with the signature '___JMPT'.

In the Bochs BIOS only stub functions are provided. These load the
index
of a particular function in the jump table, switch to protected mode
and
call the function in the high memory area.  The stack is prepared such
that functions compiled by gcc can just pick the parameters from the
stack as usual - this means that the 16bit real-mode return address is
taken off the stack. The stub functions should have the same signature
as those in 32bit space. For ABI compatibility reasons parameters
inside
the Bochs BIOS stubs should all be 32bit wide.

This patch includes a test function that calls three gcc-compiled
functions in the high memory area and displays their success status.
Simple tests are done doing multiplication and addition of 32-bit
numbers and reading and modification of a static variable. These
functions test the interface and the relocation code. The test code is
removed in patch part 3.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEND] Hook in utilisation statistics into Xen API calls.
Alastair Tse [Fri, 26 Jan 2007 15:45:51 +0000 (15:45 +0000)]
[XEND] Hook in utilisation statistics into Xen API calls.

Change PIF to be indexed by device name rather than the interface
number.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XEND] Floats for not need to be stringified in Xen API.
Alastair Tse [Fri, 26 Jan 2007 15:44:41 +0000 (15:44 +0000)]
[XEND] Floats for not need to be stringified in Xen API.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Add an example to start HVM guests via the Xen API.
Alastair Tse [Fri, 26 Jan 2007 15:42:21 +0000 (15:42 +0000)]
[XENAPI] Add an example to start HVM guests via the Xen API.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years ago[XENAPI] Make server uri easily configurable via ENV or CLI opts.
Alastair Tse [Fri, 26 Jan 2007 15:41:16 +0000 (15:41 +0000)]
[XENAPI] Make server uri easily configurable via ENV or CLI opts.

Add a vm-stat command that just polls a vm for instantaneous statistics.

Signed-off-by: Alastair Tse <atse@xensource.com>
19 years agoFix 32-bit build.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 15:08:28 +0000 (15:08 +0000)]
Fix 32-bit build.

19 years agoUpdate hgignore list
kaf24@localhost.localdomain [Fri, 26 Jan 2007 14:11:34 +0000 (14:11 +0000)]
Update hgignore list

19 years agominios : netfront driver fixes.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:51:00 +0000 (13:51 +0000)]
minios : netfront driver fixes.

- Handle returned backend==NULL || mac==NULL, this leads sometimes to a crash.
- Remove unnecessary (and bogus) initialisation of np->rx.req_prod_pvt

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoxen: Remove unused elf32.c.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:46:29 +0000 (13:46 +0000)]
xen: Remove unused elf32.c.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago32-on-64: Fix an one-off error in compat_addr_ok().
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:36:52 +0000 (13:36 +0000)]
32-on-64: Fix an one-off error in compat_addr_ok().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoCleanups for unmodified (pv-on-hvm) driver building.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:34:02 +0000 (13:34 +0000)]
Cleanups for unmodified (pv-on-hvm) driver building.

- some cleanup to mkbuildtree
- adjustment to the fake __supported_pte_mask definition (removing the
  export for x86-64 in native Linux is being discussed, so this shouldn't be
  i386 specific)
- remove odd/unused defines (mostly CONFIG_*) in overrides.mk

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years agoReplace mlock() calls with lock_pages().
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:31:59 +0000 (13:31 +0000)]
Replace mlock() calls with lock_pages().
Signed-off-by: Russell Blaine <russell.blaine@sun.com>
19 years ago32-on-64: New set_address_size domctl for switching to compat mode.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:27:01 +0000 (13:27 +0000)]
32-on-64: New set_address_size domctl for switching to compat mode.
From: Gerd Hoffmann <kraxel@suse.de>
Signed-off-by: Keir Fraser <keir@xensource.com>